<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OnTextBoxChangedModAlert.aspx.cs" Inherits="ModAlert_OnTextBoxChangedModAlert"
	Title="OnTextBoxChangedModAlert - ModWatch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageContent" Runat="Server">

	<h2>OnTextBoxChangedModAlertExtender Control</h2>

	<p>
		The OnTextBoxChangedModAlertExtender control checks for changes
		when the user changes the value of a text box.
	</p>
	
	<p>
		&lt;asp:TextBox AutoPostBack="true" ID="txtTest" runat="server" />
		<br />
		&lt;mw:OnTextBoxChangedModAlertExtender TargetControlID="txtTest" runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made. Do you want to continue?" />
	</p>
	
	<p>
		Change the value of the first text box, and if the second
		<br />
		text box is changed, the ModWatch framework will fire an alert.
		<br />
		<asp:TextBox ID="txtTestInput" runat="server" />
		<mw:TextBoxModWatcherExtender TargetControlID="txtTestInput" runat="server" />

		<br /><br />

		<asp:TextBox AutoPostBack="true" ID="txtTest" runat="server" />
		<mw:OnTextBoxChangedModAlertExtender TargetControlID="txtTest" runat="server"
			NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />

		<asp:Button Text="Save Changes" OnClick="btnSave_Click" ID="btnSave" runat="server" />

		<br /><br />
		
		Page last served: <asp:Label ID="lblLastServed" runat="server"></asp:Label>
		<br />
		Change detected on server? <asp:Label ID="lblServerChange" runat="server"></asp:Label>
	</p>

</asp:Content>
